/* Public UDP interface */

/* Copyright (C) 2009-2011 David Zanetti
 *
 *  This program is free software; you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation; version 2 of the License.
 *
 *  This program is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.
 *
 *  You should have received a copy of the GNU General Public License along
 *  with this program; if not, write to the Free Software Foundation, Inc.,
 *  51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
 */

/* process a UDP packet. This requires the IP addresses for the source/dest
 of the packet. slot is where any reply goes. returns E_* codes */
uint8_t udp_process(uint8_t slot, uint8_t *src, uint8_t *dst);

/* Send an arbitrary UDP packet to the given IP address/port */
uint8_t udp_send(uint8_t *dst_ip, uint16_t port, uint16_t s_port, uint8_t *pkt,
		uint16_t length);
